package com.text.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
@Schema(description = "商品类别")
public class Category {
    /**
     * 类别ID
     */
    private Integer id;
    /**
     * 类别名称
     */
    @Schema(description = "商品类别名称")
    @NotNull(message = "不能为空")
    private String name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
